﻿@{
	string FlowID = Request.QueryString["flowid"];
	string StepID = Request.QueryString["stepid"];
	string GroupID = Request.QueryString["groupid"];
	string TaskID = Request.QueryString["taskid"];
	string InstanceID = Request.QueryString["instanceid"];
	string DisplayModel = Request.QueryString["display"] ?? "0";
	string DBConnID = "06075250-30dc-4d32-bf97-e922cb30fac8";
	string DBTable = "TempTest";
	string DBTablePK = "ID";
	string DBTableTitle = "Title";
	RoadFlow.Platform.Dictionary BDictionary = new RoadFlow.Platform.Dictionary();
	RoadFlow.Platform.WorkFlow BWorkFlow = new RoadFlow.Platform.WorkFlow();
	RoadFlow.Platform.WorkFlowTask BWorkFlowTask = new RoadFlow.Platform.WorkFlowTask();
	string fieldStatus = BWorkFlow.GetFieldStatus(FlowID, StepID);
	LitJson.JsonData initData = BWorkFlow.GetFormData(DBConnID, DBTable, DBTablePK, InstanceID, fieldStatus);
	string TaskTitle = BWorkFlow.GetFromFieldData(initData, DBTable, DBTableTitle);
}
<link href="~/Scripts/FlowRun/Forms/flowform.css" rel="stylesheet" type="text/css" />
<script src="~/Scripts/FlowRun/Forms/common.js" type="text/javascript" ></script>
<input type="hidden" id="Form_ValidateAlertType" name="Form_ValidateAlertType" value="0" />
<input type="hidden" id="TempTest.Title" name="TempTest.Title" value="@(TaskTitle.IsNullOrEmpty() ? BWorkFlow.GetAutoTaskTitle(FlowID, StepID, Request.QueryString["groupid"]) : TaskTitle)" />
<input type="hidden" id="Form_TitleField" name="Form_TitleField" value="TempTest.Title" />
<input type="hidden" id="Form_DBConnID" name="Form_DBConnID" value="06075250-30dc-4d32-bf97-e922cb30fac8" />
<input type="hidden" id="Form_DBTable" name="Form_DBTable" value="TempTest" />
<input type="hidden" id="Form_DBTablePk" name="Form_DBTablePk" value="ID" />
<input type="hidden" id="Form_DBTableTitle" name="Form_DBTableTitle" value="Title" />
<input type="hidden" id="Form_AutoSaveData" name="Form_AutoSaveData" value="1" />
<script type="text/javascript">
	var initData = @Html.Raw(BWorkFlow.GetFormDataJsonString(initData));
	var fieldStatus = @Html.Raw(fieldStatus);
	var displayModel = '@DisplayModel';
	$(window).load(function (){
		formrun.initData(initData, "TempTest", fieldStatus, displayModel);
	});
</script>
<p style="text-align: center;"><br/></p><p style="text-align: center;"><span style="font-size: 28px;"><br/></span></p><p style="text-align: center;"><span style="font-size: 28px; color: rgb(255, 0, 0);">请   假  单 </span><br/></p><p><span style="font-size: 28px;"></span></p><table class="flowformtable" cellpadding="0" cellspacing="1" data-sort="sortDisabled"><tbody><tr class="firstRow"><td width="113" valign="top" style="word-break: break-all;">标题：</td><td valign="top" rowspan="1" colspan="3"><input type="text" id="TempTest.Title" type1="flow_text" name="TempTest.Title" value="@(RoadFlow.Platform.Users.CurrentUserName)的请假申请单" style="width:75%" maxlength="200" valuetype="0" isflow="1" class="mytext" title=""/></td></tr><tr><td width="113" valign="top" style="word-break: break-all;">请假人：<br/></td><td width="430" valign="top"><input type="text" type1="flow_org" id="TempTest.UserName" name="TempTest.UserName" value="@(new RoadFlow.Platform.Users().GetName(new RoadFlow.Platform.WorkFlowTask().GetFirstSnderID(FlowID.ToGuid(), GroupID.ToGuid(), true)))" style="width:50%" more="1" isflow="1" class="mymember" title="" dept="0" station="0" user="1" workgroup="0" unit="0" rootid="@BWorkFlowTask.GetFirstSnderDeptID(FlowID.ToGuid(), GroupID.ToGuid())"/></td><td width="114" valign="top" style="word-break: break-all;">所在部门：</td><td width="430" valign="top"><input type="text" type1="flow_org" id="TempTest.DeptName" name="TempTest.DeptName" value="@(RoadFlow.Platform.Users.CurrentDeptName)" style="width:50%" more="0" isflow="1" class="mymember" title="" dept="1" station="0" user="0" workgroup="0" unit="0" rootid="@BWorkFlowTask.GetFirstSnderDeptID(FlowID.ToGuid(), GroupID.ToGuid())"/></td></tr><tr><td width="113" valign="top" style="word-break: break-all;">请假日期：<br/></td><td width="430" valign="top" style="word-break: break-all;"><input type="text" type1="flow_datetime" id="TempTest.Date1" name="TempTest.Date1" value="@(RoadFlow.Utility.DateTimeNew.ShortDateTime)" style="width:30%" defaultvalue="@(RoadFlow.Utility.DateTimeNew.ShortDateTime)" istime="1" daybefor="0" dayafter="1" currentmonth="0" isflow="1" class="mycalendar" title=""/> 至 <input type="text" type1="flow_datetime" id="TempTest.Date2" name="TempTest.Date2" value="@(RoadFlow.Utility.DateTimeNew.ShortDateTime)" style="width:30%" defaultvalue="@(RoadFlow.Utility.DateTimeNew.ShortDateTime)" istime="1" daybefor="0" dayafter="1" currentmonth="0" isflow="1" class="mycalendar" title=""/></td><td width="114" valign="top" style="word-break: break-all;">请假天数：</td><td width="430" valign="top" style="word-break: break-all;"><input type="text" id="TempTest.Days" type1="flow_text" name="TempTest.Days" value="" style="width:30%" valuetype="3" isflow="1" class="mytext" title=""/>  天</td></tr><tr><td width="113" valign="top" style="word-break: break-all;">请假类型：<br/></td><td width="430" valign="top" style="word-break: break-all;"><input type="radio" name="TempTest.Type" id="TempTest.Type_0" value="事假" style="vertical-align:middle;" isflow="1" type1="flow_radio"/><label for="TempTest.Type_0" style="vertical-align:middle;margin-right:3px;">事假</label><input type="radio" name="TempTest.Type" id="TempTest.Type_1" value="病假" style="vertical-align:middle;" isflow="1" type1="flow_radio"/><label for="TempTest.Type_1" style="vertical-align:middle;margin-right:3px;">病假</label><input type="radio" name="TempTest.Type" id="TempTest.Type_2" value="年假" style="vertical-align:middle;" isflow="1" type1="flow_radio"/><label for="TempTest.Type_2" style="vertical-align:middle;margin-right:3px;">年假</label><input type="radio" name="TempTest.Type" id="TempTest.Type_3" value="产假" style="vertical-align:middle;" isflow="1" type1="flow_radio"/><label for="TempTest.Type_3" style="vertical-align:middle;margin-right:3px;">产假</label></td><td width="114" valign="top"><br/></td><td width="430" valign="top"><br/></td></tr><tr><td width="113" valign="top" rowspan="4" colspan="1" style="word-break: break-all;">请假事由：<br/></td><td valign="top" rowspan="4" colspan="3"><textarea isflow="1" type1="flow_textarea" id="TempTest.Reason" name="TempTest.Reason" class="mytext" style="width:75%;height:100%"></textarea></td></tr><tr></tr><tr></tr><tr></tr><tr><td width="113" valign="top" style="word-break: break-all;">相关附件：</td><td valign="top" rowspan="1" colspan="3"><input type="text" type1="flow_files" id="TempTest.test" name="TempTest.test" value="" style="width:30%" filetype="" isflow="1" class="myfile" title=""/></td></tr></tbody></table><p><span style="font-size: 28px;"></span><br/></p>